{extend name="base"/}
{block name="resources"}
<link rel="stylesheet" href="HOTEL_CSS/index.css">
<style>
    .img_size{width:100%;height:100%;}
</style>
{/block}
{block name="main"}
<div class="index-box">
    <!-- 内容部分 -->
    <div class="index-content">
        <!-- 基本信息 -->
        <div class="basic-info">
            <blockquote class="layui-elem-quote">基本信息 <span class="ns-card-sub"></span></blockquote>
            <div class="basic-info-box">
                <!-- 介绍 -->
                <div class="synopsis">
                    <div class="synopsis-img">
                        {if condition="!empty($hotel_info.hotel_img)"}
                        <img layer-src src="{:img($hotel_info.hotel_img)}" class="img_size"/>
                        {else/}
                        <img layer-src src="{:img($default_img.default_city_img)}" class="img_size"/>
                        {/if}
                    </div>
                    <div class="synopsis-content">
                        <div class="title">{$hotel_info.hotel_name}</div>
                        <div class="end-time">最后登录时间：{php} echo date("Y-m-d H:i:s", $user_info['login_time']);{/php}</div>

                        <p class="state">状态：<span class="ns-text-color-red">{if $hotel_info.status == 1} 正常 {else /} 冻结 {/if}</span></p>
                    </div>
                </div>

                <!-- 收入 -->
                <div class="income">
                    <div class="general-income">
                        <span>总收入（元）</span>
                        <span>{$hotel_info.account_withdraw+$hotel_info.account}</span>
                    </div>

                </div>

                <!-- 提现 -->
                <div class="withdraw-deposit">
                    <div class="withdraw-item">
                        <div class="item-img-box">
                            <img src="HOTELIMG/index/index_order.png" alt="">
                        </div>
                        <div class="item-content">
                            <span>可提现（元）</span>
                            <span>{$hotel_info.account}</span>
                        </div>
                    </div>
                    <div class="withdraw-item">
                        <div class="item-img-box">
                            <img src="HOTELIMG/index/index_order.png" alt="">
                        </div>
                        <div class="item-content">
                            <span>已提现（元）</span>
                            <span>{$hotel_info.account_withdraw}</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>


</div>
{/block}
{block name="script"}
<script>
	var time = (new Date()).getTime();
	var date = ns.time_to_date(time / 1000);
	//$(".ns-card-sub").text("更新时间：" + date);

	/* 版本更新 */
    $("body").on("click",".version-upgrade",function () {
        $(this).addClass("layui-hide");
    });
</script>
{/block}